package com.distributed.kv;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 分布式KV服务主启动类
 *
 * 架构特点:
 * 1. 混合架构: Cassandra后端存储 + 多级缓存
 * 2. 分段ID分配: 减少分布式环境下的ID生成冲突
 * 3. 异步处理: 提升高并发场景性能
 * 4. 多级缓存: 本地Guava Cache + Redis应用级缓存
 */
@SpringBootApplication
@EnableCaching
@EnableAsync
public class DistributedKvServiceApplication {

    public static void main(String[] args) {


        SpringApplication.run(DistributedKvServiceApplication.class, args);
    }
}